Repository navigation
Keep the previous exe or portable installer type on update - #2017
Open
russellbanks wants to merge 1 commit into
Open
russellbanks wants to merge 1 commit into
russellbanks wants to merge 1 commit into
Conversation
A generic exe's type is guessed from keywords in its version info, which were matched case-sensitively and missed descriptions such as "Maxon Self-Extracting Installer". The keywords are now matched ignoring case. As the guess can still be wrong, update keeps the previous installer's type when both the new and previous types are exe or portable, and does the same for a zip's nested installer type. Fixes #1992
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1992, where
updatechangedInstallerType: exetoportableforMaxon.MaxonAppandMicrosoft.WindowsAppRuntime.1.8.Cause
An exe that isn't detected as Advanced Installer, Burn, Inno, NSIS or Squirrel gets its type from keywords in its
OriginalFilenameandFileDescription. If neither containsinstaller,setup,7zs.sfxor7zsd.sfx, it's treated as portable.Maxon Self-Extracting Installer, and the keywords were matched case-sensitively.Install.updatereplaces the installers with the analyzed ones, andoptimize()then moved the newportableto the root over the previousexe.Changes
AsciiExt::contains_ignore_ascii_case. This also applies tonewandanalyze.exeorportableand the previous installer of the same architecture was too, the previous type is kept. A zip's nested installer type is handled the same way incarry_over_nested_installer.previous_zip_installeris now a wrapper around a generalprevious_installer, which matches the architecture first and otherwise uses the only matching installer.The rule applies to any
exeorportable, not only to a type that was guessed. A detected Squirrel or Advanced Installer exe, or a portable NSIS installer, would keep a previousportableorexeif a package switched between them across versions. That seemed too unlikely to pass a "guessed" flag throughAnalyzerand the zip analysis.Testing
exeorportable, detected types, and a zip's nested type.InstallerType: exewith--dry-run.newstill guessesportablefor the Windows App Runtime files, as there's no previous manifest to use.